//
// Created by none98 on 2021/9/22.
//

#include "PlayerBin.h"




PlayerBin::PlayerBin():
    position()
{
}

void Position::Set(int x, int y, int z) {
    std::unique_lock<std::mutex> lock(valMutex);
    this->x = x;
    this->y = y;
    this->z = z;
}

std::vector<int> Position::Get() {
    std::unique_lock<std::mutex> lock(valMutex);
    return std::move(std::vector<int>{x,y,z});
}
